﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteContent.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Brjóstagjöf.is | Stjórna notendum
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
<script type="text/javascript" src="../../Scripts/AdminAjaxScripts.js"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="UsrAdd">
    Setja 
    <select id="UserSelect" name="UserSelect">
    </select>
    <script id="UserOptionTemplate" type="text/x-jquery-tmpl">
        <option value="${strUser}">${strUser}</option>
    </script>
    í grúbbuna 
    <select id="RolesSelect" name="RolesSelect">
    </select>
    <script id="RolesOptionTemplate" type="text/x-jquery-tmpl">
        <option value="${strRole}">${strRole}</option>
    </script>
    <input type="button" id="AddToRoleBtn" name="AddToRoleBtn" value="Skrá" />
</div>

<ul id="ListUsersInRoles">
</ul>
<script id="RolesTemplate" type="text/x-jquery-tmpl">
    <li>${strRole}<li>
    <ul id="${strRole}">
    </ul>
</script>
<script id="UsersInRolesTemplate" type="text/x-jquery-tmpl">
    <li><input type="button" onclick="javascript:removeFromRole('${strUser}','${strRoleName}');" name="usr${strUser}" id="usr${strUser}" value="x" alt="Fjarlægja úr role" />${strUser}</li>
</script>
</asp:Content>

